package e_stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-30
 * Time：22:47
 */
public class TestEMyStack {
    public static void main(String[] args) {
        EMyStack<String> ems=new EMyStack<>();

        // 入栈
        ems.push("oh");
        ems.push("my");
        ems.push("good");
        ems.push("test");
        ems.push("girl");

        // 出栈
        System.out.println(ems.pop());
        System.out.println(ems.pop());
        System.out.println(ems.pop());

        // 显示栈顶元素
        System.out.println(ems.peek());
        System.out.println(ems.peek());
        System.out.println(ems.peek());

    }
}
